home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0993sept.archive
/
000015_crash!fipnet.fi!cave!jay_Sat, 4 Sep 93 06:23:14 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
3KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Sat, 4 Sep 93 06:23:14 PST
Received: from eunet.fi by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0oYSpY-0000htC; Thu, 2 Sep 93 21:33 PDT
Received: by eunet.fi with UUCP id AA05235
(5.65c+l/IDA-1.4.4 for bkhouse.cts.com!amigae); Fri, 3 Sep 1993 07:32:51 +0300
Received: by fipnet.fi (smail2.5)
id AA05347; 3 Sep 93 06:51:50 DS
Received: by cave.fipnet.fi (V1.16/Amiga)
id AA007z7; Thu, 2 Sep 93 21:14:44 EET
Date: Thu, 2 Sep 93 21:14:44 EET
Message-Id: <9309021914.AA007z6@cave.fipnet.fi>
From: jay@cave.fipnet.fi (Jussi Sarkkinen)
To: amigae@bkhouse.cts.com
Subject: Re: Fade Routine
> Well, why not? I mean CHANGE the values in whatever COLOR NUMBER you
>want to fade. How does a palette requester change the colors? just do
>whatever it does INTERNALLY...I'm not sure REGISTER was the right term, but
>you get what I mean...
I think that this would be something you are looking for: ;)
--- cut ---
graphics.library/LoadRGB4 graphics.library/LoadRGB4
NAME
LoadRGB4 -- Load RGB color values from table.
SYNOPSIS
LoadRGB4( vp, colors , count )
a0 a1 d0:16
void LoadRGB4( struct ViewPort *, UWORD *, WORD);
FUNCTION
load the count words of the colormap from table starting at
entry 0.
INPUTS
vp - pointer to ViewPort, whose colors you wish to change
colors - pointer to table of RGB values set up as an array
of USHORTS
background-- 0x0RGB
color1 -- 0x0RGB
color2 -- 0x0RGB
etc. UWORD per value.
The colors are interpreted as 15 = maximum intensity.
0 = minimum intensity.
count = number of UWORDs in the table to load into the
colormap starting at color 0(background) and proceeding
to the next higher color number
RESULTS
The ViewPort should have a pointer to a valid ColorMap to store
the colors in.
Updates the hardware copperlist to reflect the new colors.
Updates the intermediate copperlist with the new colors.
BUGS
NOTE: Under V36 and up, it is not safe to call this function
from an interrupt, due to semaphore protection of graphics
copper lists.
SEE ALSO
SetRGB4() GetRGB4() GetColorMap() graphics/view.h
--- cut ---
... and LoadRGB32 for AGA/OS3 purposes... Or maybe SetRGB4() would be better
conserning fading. But examine the autodocs. ;) I have tried to do somekind
of fading routine with AmigaE and it seems to fade, just that it crashes
allways ... Well, if I get it working I can post it here...
Cya
--
-- Three little Gnus... Jussi Sarkkinen, jay@cave.fipnet.fi.